home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / ColorSync 3.0 Mac SDK / Interfaces / CMMComponent.a < prev    next >
Encoding:
Text File  |  1999-10-28  |  16.0 KB  |  564 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMMComponent.a
  3. ;
  4. ;    Contains:    ColorSync CMM Component API
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.6
  7. ;                Release:    ColorSync 3.0 SDK for use with Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1994-1999 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__CMMCOMPONENT__') = 'UNDEFINED' THEN
  18. __CMMCOMPONENT__ SET 1
  19.  
  20.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  21.     include 'Quickdraw.a'
  22.     ENDIF
  23.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  24.     include 'Components.a'
  25.     ENDIF
  26.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  27.     include 'CMApplication.a'
  28.     ENDIF
  29.  
  30.  
  31. CMMInterfaceVersion                EQU        1
  32.  
  33. ;  Component function selectors 
  34.  
  35.                                                             ; Required 
  36. kNCMMInit                        EQU        6
  37. kCMMMatchColors                    EQU        1
  38. kCMMCheckColors                    EQU        2                    ;
  39.                                                             ;
  40.                                                             ; Optional 
  41. kCMMValidateProfile                EQU        8
  42. kCMMMatchBitmap                    EQU        9
  43. kCMMCheckBitmap                    EQU        10
  44. kCMMMatchPixMap                    EQU        3
  45. kCMMCheckPixMap                    EQU        4
  46. kCMMConcatenateProfiles            EQU        5
  47. kCMMConcatInit                    EQU        7
  48. kCMMNewLinkProfile                EQU        16
  49. kNCMMConcatInit                    EQU        18
  50. kNCMMNewLinkProfile                EQU        19
  51. kCMMGetPS2ColorSpace            EQU        11
  52. kCMMGetPS2ColorRenderingIntent    EQU        12
  53. kCMMGetPS2ColorRendering        EQU        13
  54. kCMMGetPS2ColorRenderingVMSize    EQU        17                    ;
  55.                                                             ;
  56.                                                             ; obsolete with ColorSync 2.5 
  57. kCMMFlattenProfile                EQU        14
  58. kCMMUnflattenProfile            EQU        15                    ;
  59.                                                             ;
  60.                                                             ; obsolete with ColorSync 2.6 
  61. kCMMInit                        EQU        0
  62. kCMMGetNamedColorInfo            EQU        70
  63. kCMMGetNamedColorValue            EQU        71
  64. kCMMGetIndNamedColorValue        EQU        72
  65. kCMMGetNamedColorIndex            EQU        73
  66. kCMMGetNamedColorName            EQU        74
  67.  
  68. kCMMOpen                        EQU        -1
  69. kCMMClose                        EQU        -2
  70. kCMMGetInfo                        EQU        -4
  71.     IF TARGET_API_MAC_OS8 THEN
  72. ; typedef ComponentInstance             CMMComponentInst
  73.  
  74. ;
  75. ; pascal CMError NCMMInit(CMMComponentInst cmm, CMProfileRef srcProfile, CMProfileRef dstProfile)
  76. ;
  77.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  78.         Macro
  79.         _NCMMInit
  80.             move.l              #$00080006,-(sp)
  81.             moveq               #0,D0
  82.             dc.w                $A82A
  83.         EndM
  84.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  85.         IMPORT_CFM_FUNCTION NCMMInit
  86.     ENDIF
  87.  
  88. ;
  89. ; pascal CMError CMMInit(CMMComponentInst cmm, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  90. ;
  91.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  92.         Macro
  93.         _CMMInit
  94.             move.l              #$00080000,-(sp)
  95.             moveq               #0,D0
  96.             dc.w                $A82A
  97.         EndM
  98.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  99.         IMPORT_CFM_FUNCTION CMMInit
  100.     ENDIF
  101.  
  102. ;
  103. ; pascal CMError CMMMatchColors(CMMComponentInst cmm, CMColor *colors, UInt32 count)
  104. ;
  105.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  106.         Macro
  107.         _CMMMatchColors
  108.             move.l              #$00080001,-(sp)
  109.             moveq               #0,D0
  110.             dc.w                $A82A
  111.         EndM
  112.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  113.         IMPORT_CFM_FUNCTION CMMMatchColors
  114.     ENDIF
  115.  
  116. ;
  117. ; pascal CMError CMMCheckColors(CMMComponentInst cmm, CMColor *colors, UInt32 count, UInt32 *result)
  118. ;
  119.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  120.         Macro
  121.         _CMMCheckColors
  122.             move.l              #$000C0002,-(sp)
  123.             moveq               #0,D0
  124.             dc.w                $A82A
  125.         EndM
  126.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  127.         IMPORT_CFM_FUNCTION CMMCheckColors
  128.     ENDIF
  129.  
  130. ;
  131. ; pascal CMError CMMValidateProfile(CMMComponentInst cmm, CMProfileRef prof, Boolean *valid)
  132. ;
  133.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  134.         Macro
  135.         _CMMValidateProfile
  136.             move.l              #$00080008,-(sp)
  137.             moveq               #0,D0
  138.             dc.w                $A82A
  139.         EndM
  140.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  141.         IMPORT_CFM_FUNCTION CMMValidateProfile
  142.     ENDIF
  143.  
  144. ;
  145. ; pascal CMError CMMFlattenProfile(CMMComponentInst cmm, CMProfileRef prof, UInt32 flags, CMFlattenUPP proc, void *refCon)
  146. ;
  147.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  148.         Macro
  149.         _CMMFlattenProfile
  150.             move.l              #$0010000E,-(sp)
  151.             moveq               #0,D0
  152.             dc.w                $A82A
  153.         EndM
  154.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  155.         IMPORT_CFM_FUNCTION CMMFlattenProfile
  156.     ENDIF
  157.  
  158. ;
  159. ; pascal CMError CMMUnflattenProfile(CMMComponentInst cmm, FSSpec *resultFileSpec, CMFlattenUPP proc, void *refCon)
  160. ;
  161.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  162.         Macro
  163.         _CMMUnflattenProfile
  164.             move.l              #$000C000F,-(sp)
  165.             moveq               #0,D0
  166.             dc.w                $A82A
  167.         EndM
  168.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  169.         IMPORT_CFM_FUNCTION CMMUnflattenProfile
  170.     ENDIF
  171.  
  172. ;
  173. ; pascal CMError CMMMatchBitmap(CMMComponentInst cmm, CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  174. ;
  175.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  176.         Macro
  177.         _CMMMatchBitmap
  178.             move.l              #$00100009,-(sp)
  179.             moveq               #0,D0
  180.             dc.w                $A82A
  181.         EndM
  182.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  183.         IMPORT_CFM_FUNCTION CMMMatchBitmap
  184.     ENDIF
  185.  
  186. ;
  187. ; pascal CMError CMMCheckBitmap(CMMComponentInst cmm, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  188. ;
  189.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  190.         Macro
  191.         _CMMCheckBitmap
  192.             move.l              #$0010000A,-(sp)
  193.             moveq               #0,D0
  194.             dc.w                $A82A
  195.         EndM
  196.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  197.         IMPORT_CFM_FUNCTION CMMCheckBitmap
  198.     ENDIF
  199.  
  200. ;
  201. ; pascal CMError CMMMatchPixMap(CMMComponentInst cmm, PixMap *pixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  202. ;
  203.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  204.         Macro
  205.         _CMMMatchPixMap
  206.             move.l              #$000C0003,-(sp)
  207.             moveq               #0,D0
  208.             dc.w                $A82A
  209.         EndM
  210.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  211.         IMPORT_CFM_FUNCTION CMMMatchPixMap
  212.     ENDIF
  213.  
  214. ;
  215. ; pascal CMError CMMCheckPixMap(CMMComponentInst cmm, const PixMap *pixMap, CMBitmapCallBackUPP progressProc, BitMap *bitMap, void *refCon)
  216. ;
  217.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  218.         Macro
  219.         _CMMCheckPixMap
  220.             move.l              #$00100004,-(sp)
  221.             moveq               #0,D0
  222.             dc.w                $A82A
  223.         EndM
  224.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  225.         IMPORT_CFM_FUNCTION CMMCheckPixMap
  226.     ENDIF
  227.  
  228. ;
  229. ; pascal CMError CMMConcatInit(CMMComponentInst cmm, CMConcatProfileSet *profileSet)
  230. ;
  231.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  232.         Macro
  233.         _CMMConcatInit
  234.             move.l              #$00040007,-(sp)
  235.             moveq               #0,D0
  236.             dc.w                $A82A
  237.         EndM
  238.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  239.         IMPORT_CFM_FUNCTION CMMConcatInit
  240.     ENDIF
  241.  
  242. ;
  243. ; pascal CMError NCMMConcatInit(CMMComponentInst cmm, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  244. ;
  245.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  246.         Macro
  247.         _NCMMConcatInit
  248.             move.l              #$000C0012,-(sp)
  249.             moveq               #0,D0
  250.             dc.w                $A82A
  251.         EndM
  252.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  253.         IMPORT_CFM_FUNCTION NCMMConcatInit
  254.     ENDIF
  255.  
  256. ;
  257. ; pascal CMError CMMNewLinkProfile(CMMComponentInst cmm, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  258. ;
  259.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  260.         Macro
  261.         _CMMNewLinkProfile
  262.             move.l              #$000C0010,-(sp)
  263.             moveq               #0,D0
  264.             dc.w                $A82A
  265.         EndM
  266.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  267.         IMPORT_CFM_FUNCTION CMMNewLinkProfile
  268.     ENDIF
  269.  
  270. ;
  271. ; pascal CMError NCMMNewLinkProfile(CMMComponentInst cmm, CMProfileRef prof, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  272. ;
  273.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  274.         Macro
  275.         _NCMMNewLinkProfile
  276.             move.l              #$00100013,-(sp)
  277.             moveq               #0,D0
  278.             dc.w                $A82A
  279.         EndM
  280.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  281.         IMPORT_CFM_FUNCTION NCMMNewLinkProfile
  282.     ENDIF
  283.  
  284. ;
  285. ; pascal CMError CMMGetPS2ColorSpace(CMMComponentInst cmm, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  286. ;
  287.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  288.         Macro
  289.         _CMMGetPS2ColorSpace
  290.             move.l              #$0010000B,-(sp)
  291.             moveq               #0,D0
  292.             dc.w                $A82A
  293.         EndM
  294.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  295.         IMPORT_CFM_FUNCTION CMMGetPS2ColorSpace
  296.     ENDIF
  297.  
  298. ;
  299. ; pascal CMError CMMGetPS2ColorRenderingIntent(CMMComponentInst cmm, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  300. ;
  301.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  302.         Macro
  303.         _CMMGetPS2ColorRenderingIntent
  304.             move.l              #$0010000C,-(sp)
  305.             moveq               #0,D0
  306.             dc.w                $A82A
  307.         EndM
  308.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  309.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingIntent
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal CMError CMMGetPS2ColorRendering(CMMComponentInst cmm, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  314. ;
  315.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  316.         Macro
  317.         _CMMGetPS2ColorRendering
  318.             move.l              #$0014000D,-(sp)
  319.             moveq               #0,D0
  320.             dc.w                $A82A
  321.         EndM
  322.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  323.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRendering
  324.     ENDIF
  325.  
  326. ;
  327. ; pascal CMError CMMGetPS2ColorRenderingVMSize(CMMComponentInst cmm, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 *vmSize)
  328. ;
  329.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  330.         Macro
  331.         _CMMGetPS2ColorRenderingVMSize
  332.             move.l              #$000C0011,-(sp)
  333.             moveq               #0,D0
  334.             dc.w                $A82A
  335.         EndM
  336.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  337.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingVMSize
  338.     ENDIF
  339.  
  340. ;
  341. ; pascal CMError CMMConcatenateProfiles(CMMComponentInst cmm, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  342. ;
  343.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  344.         Macro
  345.         _CMMConcatenateProfiles
  346.             move.l              #$000C0005,-(sp)
  347.             moveq               #0,D0
  348.             dc.w                $A82A
  349.         EndM
  350.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  351.         IMPORT_CFM_FUNCTION CMMConcatenateProfiles
  352.     ENDIF
  353.  
  354. ;
  355. ; pascal CMError CMMGetNamedColorInfo(CMMComponentInst cmm, CMProfileRef srcProf, UInt32 *deviceChannels, OSType *deviceColorSpace, OSType *PCSColorSpace, UInt32 *count, StringPtr prefix, StringPtr suffix)
  356. ;
  357.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  358.         Macro
  359.         _CMMGetNamedColorInfo
  360.             move.l              #$001C0046,-(sp)
  361.             moveq               #0,D0
  362.             dc.w                $A82A
  363.         EndM
  364.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  365.         IMPORT_CFM_FUNCTION CMMGetNamedColorInfo
  366.     ENDIF
  367.  
  368. ;
  369. ; pascal CMError CMMGetNamedColorValue(CMMComponentInst cmm, CMProfileRef prof, StringPtr name, CMColor *deviceColor, CMColor *PCSColor)
  370. ;
  371.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  372.         Macro
  373.         _CMMGetNamedColorValue
  374.             move.l              #$00100047,-(sp)
  375.             moveq               #0,D0
  376.             dc.w                $A82A
  377.         EndM
  378.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  379.         IMPORT_CFM_FUNCTION CMMGetNamedColorValue
  380.     ENDIF
  381.  
  382. ;
  383. ; pascal CMError CMMGetIndNamedColorValue(CMMComponentInst cmm, CMProfileRef prof, UInt32 index, CMColor *deviceColor, CMColor *PCSColor)
  384. ;
  385.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  386.         Macro
  387.         _CMMGetIndNamedColorValue
  388.             move.l              #$00100048,-(sp)
  389.             moveq               #0,D0
  390.             dc.w                $A82A
  391.         EndM
  392.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  393.         IMPORT_CFM_FUNCTION CMMGetIndNamedColorValue
  394.     ENDIF
  395.  
  396. ;
  397. ; pascal CMError CMMGetNamedColorIndex(CMMComponentInst cmm, CMProfileRef prof, StringPtr name, UInt32 *index)
  398. ;
  399.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  400.         Macro
  401.         _CMMGetNamedColorIndex
  402.             move.l              #$000C0049,-(sp)
  403.             moveq               #0,D0
  404.             dc.w                $A82A
  405.         EndM
  406.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  407.         IMPORT_CFM_FUNCTION CMMGetNamedColorIndex
  408.     ENDIF
  409.  
  410. ;
  411. ; pascal CMError CMMGetNamedColorName(CMMComponentInst cmm, CMProfileRef prof, UInt32 index, StringPtr name)
  412. ;
  413.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  414.         Macro
  415.         _CMMGetNamedColorName
  416.             move.l              #$000C004A,-(sp)
  417.             moveq               #0,D0
  418.             dc.w                $A82A
  419.         EndM
  420.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  421.         IMPORT_CFM_FUNCTION CMMGetNamedColorName
  422.     ENDIF
  423.  
  424.     IF OLDROUTINENAMES THEN
  425.     ENDIF    ; OLDROUTINENAMES
  426.     ELSE
  427. ;
  428. ; pascal CMError CMMOpen(UInt32 *cmmStorage, void *hInstance)
  429. ;
  430.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  431.         IMPORT_CFM_FUNCTION CMMOpen
  432.     ENDIF
  433.  
  434. ;
  435. ; pascal CMError CMMClose(UInt32 *cmmStorage)
  436. ;
  437.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  438.         IMPORT_CFM_FUNCTION CMMClose
  439.     ENDIF
  440.  
  441. ;
  442. ; pascal CMError CMMGetCMMInfo(UInt32 *cmmStorage, CMMInfo *info)
  443. ;
  444.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  445.         IMPORT_CFM_FUNCTION CMMGetCMMInfo
  446.     ENDIF
  447.  
  448. ;
  449. ; pascal CMError NCMMInit(UInt32 *cmmStorage, CMProfileRef srcProfile, CMProfileRef dstProfile)
  450. ;
  451.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  452.         IMPORT_CFM_FUNCTION NCMMInit
  453.     ENDIF
  454.  
  455. ;
  456. ; pascal CMError CMMMatchColors(UInt32 *cmmStorage, CMColor *colors, UInt32 count)
  457. ;
  458.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  459.         IMPORT_CFM_FUNCTION CMMMatchColors
  460.     ENDIF
  461.  
  462. ;
  463. ; pascal CMError CMMCheckColors(UInt32 *cmmStorage, CMColor *colors, UInt32 count, UInt32 *result)
  464. ;
  465.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  466.         IMPORT_CFM_FUNCTION CMMCheckColors
  467.     ENDIF
  468.  
  469. ;
  470. ; pascal CMError CMMValidateProfile(UInt32 *cmmStorage, CMProfileRef prof, Boolean *valid)
  471. ;
  472.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  473.         IMPORT_CFM_FUNCTION CMMValidateProfile
  474.     ENDIF
  475.  
  476. ;
  477. ; pascal CMError CMMMatchBitmap(UInt32 *cmmStorage, CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  478. ;
  479.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  480.         IMPORT_CFM_FUNCTION CMMMatchBitmap
  481.     ENDIF
  482.  
  483. ;
  484. ; pascal CMError CMMCheckBitmap(UInt32 *cmmStorage, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  485. ;
  486.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  487.         IMPORT_CFM_FUNCTION CMMCheckBitmap
  488.     ENDIF
  489.  
  490. ;
  491. ; pascal CMError CMMMatchPixMap(UInt32 *cmmStorage, PixMap *pixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  492. ;
  493.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  494.         IMPORT_CFM_FUNCTION CMMMatchPixMap
  495.     ENDIF
  496.  
  497. ;
  498. ; pascal CMError CMMCheckPixMap(UInt32 *cmmStorage, const PixMap *pixMap, CMBitmapCallBackUPP progressProc, BitMap *bitMap, void *refCon)
  499. ;
  500.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  501.         IMPORT_CFM_FUNCTION CMMCheckPixMap
  502.     ENDIF
  503.  
  504. ;
  505. ; pascal CMError CMMConcatInit(UInt32 *cmmStorage, CMConcatProfileSet *profileSet)
  506. ;
  507.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  508.         IMPORT_CFM_FUNCTION CMMConcatInit
  509.     ENDIF
  510.  
  511. ;
  512. ; pascal CMError NCMMConcatInit(UInt32 *cmmStorage, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  513. ;
  514.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  515.         IMPORT_CFM_FUNCTION NCMMConcatInit
  516.     ENDIF
  517.  
  518. ;
  519. ; pascal CMError CMMNewLinkProfile(UInt32 *cmmStorage, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  520. ;
  521.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  522.         IMPORT_CFM_FUNCTION CMMNewLinkProfile
  523.     ENDIF
  524.  
  525. ;
  526. ; pascal CMError NCMMNewLinkProfile(UInt32 *cmmStorage, CMProfileRef prof, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  527. ;
  528.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  529.         IMPORT_CFM_FUNCTION NCMMNewLinkProfile
  530.     ENDIF
  531.  
  532. ;
  533. ; pascal CMError CMMGetPS2ColorSpace(UInt32 *cmmStorage, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  534. ;
  535.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  536.         IMPORT_CFM_FUNCTION CMMGetPS2ColorSpace
  537.     ENDIF
  538.  
  539. ;
  540. ; pascal CMError CMMGetPS2ColorRenderingIntent(UInt32 *cmmStorage, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  541. ;
  542.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  543.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingIntent
  544.     ENDIF
  545.  
  546. ;
  547. ; pascal CMError CMMGetPS2ColorRendering(UInt32 *cmmStorage, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  548. ;
  549.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  550.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRendering
  551.     ENDIF
  552.  
  553. ;
  554. ; pascal CMError CMMGetPS2ColorRenderingVMSize(UInt32 *cmmStorage, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 *vmSize)
  555. ;
  556.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  557.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingVMSize
  558.     ENDIF
  559.  
  560.  
  561.     ENDIF    ; TARGET_API_MAC_OS8
  562.     ENDIF ; __CMMCOMPONENT__ 
  563.  
  564.